package com.springboot.myspringboot.Service.impl;

import com.springboot.myspringboot.Service.UserService;
import com.springboot.myspringboot.entity.User;
import com.springboot.myspringboot.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public User selectOne(User user) {
        User usePwd = userMapper.selectByUsername(user.getUsername());
        return usePwd;
    }
}
